//
//  ZYDateilViewController.m
//  KaKaWallet
//
//  Created by admin on 2016/10/31.
//  Copyright © 2016年 ibendi. All rights reserved.
//

#import "ZYDateilViewController.h"
#import "ZYPageListView.h"

@interface ZYDateilViewController ()

@end

@implementation ZYDateilViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    self.view.backgroundColor = [UIColor yellowColor];
    
    ZYPageListView *vc= [[ZYPageListView alloc] initWithFrame:CGRectMake(0, 200, self.view.frame.size.width, 44*3)];
    [self.view addSubview:vc];
    
    
    [vc startWithdata:@[@"11111111111",@"2222222222",@"333333333",@"4444444",@"555555555",@"11111111111",@"2222222222",@"333333333",@"4444444",@"555555555",@"11111111111",@"2222222222",@"333333333"]];
    
    [vc zyCellForRowAtIndexPath:^UITableViewCell *(UITableView *tableView, NSIndexPath *indexPath) {
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
        if (!cell) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
        }
        
        
        return cell;
        
    } wihtDidSelectRowAtIndexPath:^(UITableView *tableView, NSIndexPath *indexPath) {
        
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
